﻿<%@ Page Language="C#" MasterPageFile="~/admin/admin_page.master" AutoEventWireup="true" CodeBehind="taobao_import.aspx.cs" Inherits="YXShop.Web.admin.product.taobao_import" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <link rel="stylesheet" href="../style/toolbar.css" type="text/css" />
    <script src="../scripts/public.js" type="text/javascript"></script>
    <script src="../scripts/images.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    function BatchImport(id)
    {
    var cid=document.getElementById("ctl00_pagebottom_hfcid").value;
        if(cid=="")
        {
            alert("请选择导入的所属分类。");
            return;
        }
        var idStr;
       if(id<0)
       {
            idStr = GetAllChecked();
            if(idStr == "")
            {
                alert("您没有选择要导入的信息!");
                return;
            }
       }
       else
       {
           idStr=id
       }
       if(confirm('确定要导入选中信息吗？'))
       {
            var param = "Option=batchImport&cid="+cid+"&idStr=" + idStr;
            var options = 
            { method: 'post',parameters: param,onComplete:
                 function(transport)
                 {
                     var retv = transport.responseText;
                     alert(retv);
                 }
            }
        }
        else
        {
            return false;
        }
        new Ajax.Request('taobao_import.aspx', options);
    }
    </script>
    <script src="../scripts/images.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
淘宝数据导入
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="pagesarch" ID="ContentSearch" runat="server">
    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
<div id="Layer1" style="display:none;position:absolute;z-index:1;"></div>
<asp:Literal ID="lblList" runat="server"></asp:Literal>
</asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    所属分类：<asp:TextBox ID="txtProductClass" runat="server"></asp:TextBox>
    <asp:HiddenField runat="server" ID="hfcid" />
    <asp:HyperLink ID="HyperLink2" runat="server"  CssClass="inputbutton" NavigateUrl="#" onclick="BatchImport(-1)" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">批量导入</asp:HyperLink>
</asp:Content>